from rest_framework import serializers
from rest_framework.serializers import *


class NoneSerializer(serializers.Serializer):
    """无请求参数"""

    class Meta:
        fields = "__all__"


class RepostSerializer(serializers.Serializer):
    """接收利住消息"""

    type = IntegerField(required=True, help_text="type")
    data = ListField(help_text="data")

    class Meta:
        fields = "__all__"


class AlertSerializer(serializers.Serializer):
    """提取利住消息"""

    hid = IntegerField(required=True, help_text="场所ID")

    class Meta:
        fields = "__all__"
